<template>
    <div class="son">
      {{ msg }}
      <gread-son></gread-son>
    </div>
</template>

<script setup name="son">
import greadSon from "@/components/greadSon.vue"
let msg=ref('我是son组件');
const car =inject('car')
console.log('[ son页面car ] >', car)
</script>

<style lang="less" scoped  >
 .son{
  background: salmon;
  text-align: center;
 }

</style>
